<?php 
	echo implode(",",array_keys($data[0]['LeiturasHs02']))."\n"; 

    foreach ($data as $row) { 
        echo implode(",",$row['LeiturasHs02'])."\n"; 
    } 
?> 